home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / scud3 / scud.frm < prev    next >
Text File  |  1995-05-08  |  5KB  |  183 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "Iraqi Missile"
  5.    ClientHeight    =   4005
  6.    ClientLeft      =   1365
  7.    ClientTop       =   1770
  8.    ClientWidth     =   5550
  9.    Height          =   4410
  10.    Icon            =   SCUD.FRX:0000
  11.    Left            =   1305
  12.    LinkMode        =   1  'Source
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    ScaleHeight     =   4005
  16.    ScaleWidth      =   5550
  17.    Top             =   1425
  18.    Width           =   5670
  19.    Begin Timer HSPTimer 
  20.       Enabled         =   0   'False
  21.       Interval        =   1000
  22.       Left            =   480
  23.       Top             =   3645
  24.    End
  25.    Begin Timer TenSecondClock 
  26.       Enabled         =   0   'False
  27.       Interval        =   2500
  28.       Left            =   195
  29.       Top             =   3645
  30.    End
  31.    Begin PictureBox Picture2 
  32.       Height          =   2076
  33.       Left            =   3720
  34.       Picture         =   SCUD.FRX:0302
  35.       ScaleHeight     =   2040
  36.       ScaleWidth      =   1665
  37.       TabIndex        =   3
  38.       Top             =   1896
  39.       Width           =   1692
  40.    End
  41.    Begin CommandButton Command2 
  42.       Caption         =   "Hide SCUD!"
  43.       Enabled         =   0   'False
  44.       Height          =   375
  45.       Left            =   3600
  46.       TabIndex        =   1
  47.       Top             =   600
  48.       Width           =   1815
  49.    End
  50.    Begin CommandButton Command1 
  51.       Caption         =   "Show SCUD!"
  52.       Height          =   375
  53.       Left            =   3600
  54.       TabIndex        =   0
  55.       Top             =   120
  56.       Width           =   1815
  57.    End
  58.    Begin PictureBox Picture1 
  59.       Height          =   3468
  60.       Left            =   96
  61.       ScaleHeight     =   3435
  62.       ScaleWidth      =   3435
  63.       TabIndex        =   5
  64.       Top             =   96
  65.       Width           =   3468
  66.    End
  67.    Begin Label Label2 
  68.       Caption         =   "Click on the SCUD!"
  69.       Height          =   252
  70.       Left            =   960
  71.       TabIndex        =   4
  72.       Top             =   3648
  73.       Width           =   1812
  74.    End
  75.    Begin Label Label1 
  76.       Caption         =   "Click the MICOM logo to blow away the SCUD program!"
  77.       Height          =   615
  78.       Left            =   3600
  79.       TabIndex        =   2
  80.       Top             =   1080
  81.       Width           =   1815
  82.    End
  83. End
  84. Dim IgnoreScudHits As Integer
  85.  
  86. Sub Command1_Click ()
  87.     Form1.BackColor = Picture2.BackColor
  88.     TenSecondClock.Enabled = 1
  89.     HSPTimer.Enabled = 1
  90.     Picture1.Visible = 1
  91.     Label2.Visible = 1
  92.     Command1.Enabled = 0
  93.     Command2.Enabled = 1
  94. End Sub
  95.  
  96. Sub Command2_Click ()
  97.     TenSecondClock.Enabled = 0
  98.     HSPTimer.Enabled = 0
  99.     Picture1.Visible = 0
  100.     Command2.Enabled = 0
  101.     Command2.Caption = "Hide SCUD!"
  102.     Command1.Enabled = 1
  103.     Label2.Visible = 0
  104.     Form1.BackColor = Picture2.BackColor
  105.     Label2.BackColor = Picture2.BackColor
  106.     Label1.BackColor = Picture2.BackColor
  107.     Form1.Icon = Form2.TrashOut.Picture
  108. End Sub
  109.  
  110. Sub Form_Load ()
  111.     Load Form2
  112.     MsgBox "Brought to you by" + Chr$(13) + Chr$(10) + "Microsoft Visual Basic" + Chr$(13) + Chr$(10) + "and US Army MICOM Friends!" + Chr$(13) + Chr$(10) + "(We're the PATRIOT People!)", 64, "Thank You, Desert Storm!"
  113.     IgnoreScudHits = 0
  114.     Picture1.Visible = 0
  115.     Picture1.Picture = Form2.PictureScud.Picture
  116.     TenSecondClock.Enabled = 0
  117.     HSPTimer.Enabled = 0
  118.     Label2.Visible = 0
  119. End Sub
  120.  
  121. Sub Form_Unload (Cancel As Integer)
  122.     Picture2_Click
  123. End Sub
  124.  
  125. Sub HSPTimer_Timer ()
  126.     If Command2.Enabled Then
  127.         If Command2.Caption = "Hide SCUD!" Then
  128.             Command2.Caption = "USAF ATTACK!"
  129.             Form1.Icon = Form2.TrashBurning.Picture
  130.         Else
  131.             Command2.Caption = "Hide SCUD!"
  132.             Form1.Icon = Form2.TrashOut.Picture
  133.         End If
  134.     End If
  135. End Sub
  136.  
  137. Sub Picture1_Click ()
  138.     Dim BoxReply As Integer
  139.     If IgnoreScudHits = 0 Then
  140.         Label2.Visible = 0
  141.         Picture1.Picture = Form2.PictureSaddam.Picture
  142.         BoxReply = MsgBox("Don't hit my Scuds!" + Chr$(13) + Chr$(10) + "I've had enough!", 512 + 16 + 2, "A Message from Saddam...")
  143.         If BoxReply = 3 Then
  144.             End
  145.         ElseIf BoxReply = 5 Then
  146.             IgnoreScudHits = 1
  147.         End If
  148.         Picture1.Picture = Form2.PictureScud.Picture
  149.         Label2.Visible = 1
  150.     Else
  151.         If Form1.BackColor < 0 Then
  152.             Form1.BackColor = RGB(255, 0, 0)
  153.         ElseIf Form1.BackColor = RGB(255, 0, 0) Then
  154.             Form1.BackColor = RGB(0, 255, 0)
  155.         ElseIf Form1.BackColor = RGB(0, 255, 0) Then
  156.             Form1.BackColor = RGB(0, 0, 255)
  157.         ElseIf Form1.BackColor = RGB(0, 0, 255) Then
  158.             Form1.BackColor = RGB(255, 0, 0)
  159.         Else
  160.             Beep
  161.         End If
  162.         Label1.BackColor = Form1.BackColor
  163.         Label2.BackColor = Form1.BackColor
  164.     End If
  165. End Sub
  166.  
  167. Sub Picture2_Click ()
  168.     Command2_Click
  169.     Picture1.Picture = Form2.PictureNuke.Picture
  170.     Picture1.Visible = 1
  171.     MsgBox "SCUD blown from the face of the earth!", 64, "Bye, Bye SCUD!"
  172.     End
  173. End Sub
  174.  
  175. Sub TenSecondClock_Timer ()
  176.     If Form1.Caption = "Iraqi Missile" Then
  177.         Form1.Caption = "Busted SCUD!"
  178.     Else
  179.         Form1.Caption = "Iraqi Missile"
  180.     End If
  181. End Sub
  182.  
  183.